package com.xiyou.weblog.web.controller;


import com.xiyou.weblog.common.aspect.ApiOperationLog;
import com.xiyou.weblog.common.utils.Response;
import com.xiyou.weblog.web.service.BlogSettingsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/blog/settings")
@Tag(name = "博客设置")
public class BlogSettingsController {

    @Resource
    private BlogSettingsService blogSettingsService;

    @PostMapping("/detail")
    @ApiOperationLog(description = "前台获取博客详情")
    @Operation(summary = "前台获取博客详情")
    public Response findDetail() {
        return blogSettingsService.findDetail();
    }

}

